
import { App} from '@vue/composition-api'
import beToBody from './src/to-body.vue'
import type { SFCWithInstall } from '@/types/common-type'
import {IComponentIns} from "@/types/common-type";

/**
 * 组件装载方法
 * @param app
 */
const toBody = beToBody as IComponentIns
toBody.install = (app:App): void => {
    app.component(toBody.name,toBody)
}
const BeToBody = toBody as SFCWithInstall<typeof toBody>
export default BeToBody